package com.niguang.govt.admin.common.config.sms;


import com.aliyun.dayu.api.SmsTemplate;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


@Configuration
@PropertySource(value = "classpath:ali_sms.properties", encoding = "utf-8")
public class SmsConfiguration {


    @Bean
    @ConfigurationProperties(prefix = "ali.sms")
    public SmsTemplate smsTemplate() {
        return new SmsTemplate();
    }

}
